//
//  MBSearch.m
//  MBObjectServer
//
//  Created by Juvid on 14-4-23.
//  Copyright (c) 2014年 MBpayer. All rights reserved.
//

#import "MBSearch.h"

@implementation MBSearch
+(id) getMBSearchDictionary :(NSDictionary *) dic {
    MBSearch * seach = [[MBSearch alloc]init] ;
    seach.catId = [dic objectForKey:@"catId"];
    seach.category = [dic objectForKey:@"category"];
    seach.mainTree = [dic objectForKey:@"mainTree"];
    seach.subTree = [dic objectForKey:@"subTree"];
    return seach ;
}

+(NSMutableDictionary *) getDictionaryMBSearch :(MBSearch* ) seach {
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]init] ;
    [dic setObject:seach.catId forKey:@"catId"];
    [dic setObject:seach.category forKey:@"category"];
    [dic setObject:seach.mainTree forKey:@"mainTree"];
    [dic setObject:seach.subTree forKey:@"subTree"];
    
    return dic ;
}

@end
